import request from '@/utils/request'

// 查询专家信息列表
export function listExpert(query) {
  return request({
    url: '/expert/expert/list',
    method: 'get',
    params: query
  })
}

// 查询专家信息详细
export function getExpert(expertCode) {
  return request({
    url: '/expert/expert/' + expertCode,
    method: 'get'
  })
}

// 新增专家信息
export function addExpert(data) {
  return request({
    url: '/expert/expert',
    method: 'post',
    data: data
  })
}

// 修改专家信息
export function updateExpert(data) {
  return request({
    url: '/expert/expert',
    method: 'put',
    data: data
  })
}

// 删除专家信息
export function delExpert(expertCode) {
  return request({
    url: '/expert/expert/' + expertCode,
    method: 'delete'
  })
}



// 筛选专家
export function cassExpertList(data) {
  return request({
    url: '/expert/expert/getSuccessExpertList',
    method: 'post',
    data: data
  })
}

// 筛选专家/添加
export function cassExpertListAdd(data) {
  return request({
    url: '/expert/expert/getSuccessExpertListAdd',
    method: 'post',
    data: data
  })
}
